using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using FITHOU.DO;
using FITHOU.BL;

namespace FITHOU.FormDesign
{
    public partial class frTuDienTA : DevExpress.XtraEditors.XtraForm
    {
        public frTuDienTA()
        {
            InitializeComponent();
        }

        private void btDichTA_Click(object sender, EventArgs e)
        {
            string s = txtTA.Text;
            tbl_TuDienDO objTuDien = new tbl_TuDienBL().SelectTA(new tbl_TuDienDO { TA = s });
            if (objTuDien.TV == null)
            {
                txtTV.Text = "Khoong timf thaays duwx lieeuj..!!..";
            }
            else
            {
                txtTV.Text = objTuDien.TV.ToString();
            }
        }

        private void frTuDienTA_Load(object sender, EventArgs e)
        {

        }
    }
}